<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><%@ include file="/WEB-INF/commons/taglibs.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>小灰机诗歌后台系统系统</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<%-- <link rel="shortcut icon" href="${ctx }/resources/front/img/favicon.ico" />
<link type="text/css" rel="stylesheet" href="${ctx }/resources/back/css/global.css" />
 --%>
<script charset="utf-8" type="text/javascript" src="${ctx }/resources/back/js/jquery-1.7.1.js"></script>
<script charset="utf-8" type="text/javascript" src="${ctx }/resources/back/js/admin.js"></script>
<script type="text/javascript">
$(function() {
	$(function() {
		GrayPlane.login("#loginform", "${ctx}");
	});
	var showError = function(msg){
		$("#err_m").empty().append(msg);
	};	
	var code = "${param.code}";
	if(code){
		try{
			var codeAsInt = parseInt(code , 10);
			switch(codeAsInt){
			case 1:
				showError("无效的用户名密码！");
				break;
			case 2:
				showError("该用户已被锁定！");
				break;
			case 4:
				showError("无效的用户名密码！");
				break;
			case 8:
				showError("验证码错误！");
				break;
			default:
				showError("未知错误！");
				break;
			}
		}catch(e){
			showError("未知错误！");
		}
	}
});
function beforeSub(){
    if($("#username").val()==""){
    	$("#username").focus().siblings('label').hide();
    	$("#err_m").html("您还没有输入帐号！");
        return false;
	}
    if($("#password").val()==""){
    	 $("#password").focus().siblings('label').hide();
    	 $("#err_m").html("您还没有输入密码！");
    	   return false;            
	}
	return true;
    }
</script>
<style type="text/css">

html{ overflow:auto}
html,body{ width:100%; height:100%}
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,table,th,td,img,a{margin:0;padding:0}
body{font:12px/1.75 Tahoma,Arial;color:#333;background:#f3f3f3;_background-image:url(about:blank);_background-attachment:fixed}
table,td{border-collapse:collapse;border-spacing:0}
h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}
img{ border:0}
strong{font-weight:800}
ul,li{list-style:none}
a{color:#006a92;text-decoration:none}
a:hover{text-decoration:underline}
a:focus{outline:none}
.check1{margin:-3px 4px 0 0;*margin:0 1px 0 -3px;vertical-align:middle; cursor:pointer; outline:none}
.clear:after{content:'.';clear:both;display:block;height:0;visibility:hidden;line-height:0}.clear{zoom:1}
.web_login a,
.more_link .reg,.c_tx6{ color:#999}

/*image source*/
.login_button input{ outline:none; background:#8dba36 url(${ctx }/resources/back/images/login/lg_btn120730b.png) no-repeat}
.lg_bd_in{ margin:0 auto; width:1000px}


/*login area*/
.lg_bd{ padding:25px 0 30px; min-height:260px; _height:260px; background:url(${ctx }/resources/back/images/login/lg_bg_bt.png) center bottom no-repeat;}
.lg_bd_c{ position:relative}
.lg_bd_c1{ position:relative; width:520px; margin:0 auto; padding-bottom:40px; border:1px solid #e2e2e2; background:#fdfdfd;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;color:#999}
.loginBox{ padding:34px 0 0 110px; margin:0 10px 0; border-bottom:1px solid #eaeaea}
.login_form{ overflow:hidden}
.input_w{ position:relative; width:272px; height:40px; background:#fff; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px}
.input_w input{ display:block; float:left; height:38px; line-height:38px\9; padding:0 10px; width:250px; border:#ccc 1px solid; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; background:none; outline:0; font-size:14px; font-family:inherit}
.input_w input:focus{ border-color:#42b1d0}
.input_w label{ margin-bottom:-40px; display:block; width:100%; height:40px; text-indent:10px; font:14px/40px Microsoft Yahei,Simsun,Tahoma; overflow:hidden; _line-height:43px; color:#aaa; cursor:text}
.input_w br{ display:none}
.lg_list .item{ padding-bottom:15px; float:left; width:100%}
.login_button,.login_enable{ display:inline-block; *display:inline; *zoom:1; vertical-align:middle;}
.login_button{ margin-right:15px}
.login_button input{ _line-height:42px; padding:0; width:140px; height:40px; border:0; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; font-size:20px; color:#fff; text-shadow:#5c9114 0px 0px 2px; font-family:Microsoft Yahei,Simsun,Arial,sans-serif; overflow:hidden; cursor:pointer; background-position:0 0}
.login_button input:hover{ background-position:-141px 0}

.more_link{ position:absolute; bottom:8px}
.more_link a{ float:left; white-space:nowrap; margin-right:5px}
.more_link .spacer{ float:left; margin-right:5px; color:#333; opacity:.2; filter:alpha(opacity=20)}

/*login action*/
.err_m{ margin-bottom:6px; color:#ef9800; white-space:nowrap}
.lg_tip{ color:#999}
.logBotInfo{ color:#666;width: 500px;margin: 0 auto; font-family:"Simsun";padding-top:5px; padding-left:35px}

/*bottom*/
.lg_foot{ position:absolute; right:0; bottom:0; text-align:right; padding-bottom:10px}
.lg_bd_tit{ font:600 30px "MicroSoft YaHei"; color:#838383; width:500px; margin:0 auto; padding:100px 0 40px 35px; }
</style>

</head>
<body>
<div class="lg_bd">
    <div class="lg_bd_in">
        <div class="lg_bd_tit">小灰机诗歌后台系统</div>
        <div class="lg_bd_c clear" id="lg_bd_c">
            <div class="lg_bd_c1 clear">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tbody><tr>
                        <td>
                            <div class="loginBox">
                                <div class="login_form">
                                    <div id="login" class="main">
                                        <div style="display:none" id="qlogin"></div>
                                        <div style="display:block" id="web_login">
                                            <form id="loginform" onsubmit="return beforeSub();" method="post" name="loginform">
                                                <div id="err_m" class="err_m"></div>
                                                <ul id="g_list" class="lg_list clear">
                                                    <li id="g_u" class="item">
                                                        <div class="input_w">
                                                            <label id="wb_tips" for="u" style="display: block;">英文帐号/用户名</label><br/>
                                                            <input id="username" name="username" value="" class="inputstyle" tabindex="1" onfocus="" onblur="" type="text"/>
                                                        </div>
                                                    </li>
                                                    <li id="g_p" class="item">
                                                        <div class="input_w">
                                                            <label id="label_pwd" for="p">密码</label><br/>
                                                            <input id="password" name="password" value="" class="inputstyle" onfocus="" tabindex="2" maxlength="16" type="password" />
                                                        </div>
                                                    </li>
                                                    <li class="item">
                                                        <div class="login_button_w">
                                                            <div class="login_button">
                                                                <input type="submit" tabindex="5" value="登 录" id="login_btn" />
                                                            </div>
                                                            <div class="login_enable" title="为了确保您的信息安全，不建议在网吧等公共环境勾选此项">
                                                                <label class="c_tx6" for="low_login_enable" title="为了确保您的信息安全，不建议在网吧等公共环境勾选此项">
                                                                    <input id="low_login_enable" tabindex="4" value="1" type="checkbox" name="low_login_enable" class="check1" checked="checked" /><span id="label_remember_pwd">下次自动登录</span>
                                                                </label>
                                                            </div>
                                                        </div>
                                                    </li>
                                                </ul>
                                                <div id="label_unable_tips" class="lineright"></div>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                                <div class="more_link clear" style="display: none;">                                    
                                    <span class="spacer">|</span>
                                    <a class="c_tx6" id="label_forget_pwd" tabindex="6" href="javascript:;" onclick="return onClickForgetPwd()" target="_blank">忘记密码？</a>
                                    <span class="spacer">|</span>
                                    <a href="" target="_blank" class="reg" onclick="">立即注册</a>
                                </div>
                            </div>
                        </td>
                    </tr>
                </tbody></table>
            </div>
        </div>        
    </div>
</div>
<div class="logBotInfo">
            ·  帮助管理网站：数据、资源哟过户<br/>
            ·  帮助用户使用：增删改查 CRUD
</div>
<div style="display:none"></div>
</body>
</html>